<template>
  <el-container class="layout-container">
    <aside-menu />
    <el-container class="content-wrapper">
      <header-bar />
      <tags-view v-if="settings.tagsView" />
      <main-content />
    </el-container>
  </el-container>
</template>

<script setup>
import { computed } from 'vue'
import { useAppStore } from '@/stores/app'
import AsideMenu from './components/aside.vue'
import HeaderBar from './components/header.vue'
import TagsView from './components/tags/index.vue'
import MainContent from './router-view/main.vue'

const appStore = useAppStore()
const settings = computed(() => appStore.settings)
</script>

<style scoped>
.layout-container {
  height: 100%;
  width: 100%;
}
.content-wrapper {
  flex-direction: column;
  width: 100%;
  height: 100%;
}
</style>
